home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / Include / devTypes.h < prev    next >
C/C++ Source or Header  |  1991-03-30  |  3KB  |  119 lines

  1. /*
  2.  * devTypes.h --
  3.  *
  4.  *    This file declares the major device types used in Sprite.
  5.  *
  6.  * Copyright 1988 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  *
  15.  * $Header: /sprite/src/kernel/dev/RCS/devTypes.h,v 9.8 91/03/30 17:01:50 mgbaker Exp $ SPRITE (Berkeley)
  16.  */
  17.  
  18. #ifndef _DEVTYPES
  19. #define _DEVTYPES
  20.  
  21. /* constants */
  22.  
  23. /*
  24.  * Device types:
  25.  *
  26.  *    DEV_TERM        Terminal devices, like the console
  27.  *    DEV_SYSLOG        The system log device
  28.  *    DEV_MEMORY        Null device and kernel memory area.
  29.  *    DEV_NET            Raw ethernet device - unit number is protocol.
  30.  *    DEV_KEYBOARD        Keyboard
  31.  *    DEV_SCSI_DISK        Disk on the SCSI bus
  32.  *    DEV_SCSI_TAPE        Tape drive on the SCSI bus
  33.  *    DEV_XYLOGICS        Xylogics 450 controller
  34.  *    DEV_SCSI_HBA        Raw SCSI HBA device driver
  35.  *    DEV_RAID        Raw interface to disk array
  36.  *    DEV_DEBUG        For debugging disk arrays?
  37.  *    DEV_MOUSE        Mouse and keystroke info for window systems
  38.  *    DEV_AUDIO        Audio device
  39.  *
  40.  *
  41.  * NOTE: These numbers correspond to the major numbers for the devices
  42.  * in /dev. Do not change them unless you redo makeDevice for all the devices
  43.  * in /dev.
  44.  *
  45.  */
  46.  
  47. #define    DEV_TERM        0
  48. #define    DEV_SYSLOG        1
  49. #define    DEV_SCSI_WORM        2
  50. #define    DEV_PLACEHOLDER_2    3
  51. #define    DEV_SCSI_DISK        4
  52. #define    DEV_SCSI_TAPE        5
  53. #define    DEV_MEMORY        6
  54. #define    DEV_XYLOGICS        7
  55. #define    DEV_NET            8
  56. #define    DEV_SCSI_HBA        9
  57. #define    DEV_RAID        10
  58. #define    DEV_DEBUG        11
  59.  
  60. #if (!defined(ds3100)) && (!defined(ds5000))
  61. #define DEV_MOUSE        12
  62. #define DEV_GRAPHICS        13
  63. #else
  64. #define    DEV_CONSOLE        0
  65. #define DEV_GRAPHICS        9
  66. /*
  67.  * Unit numbers for the graphics device.
  68.  */
  69. #define DEV_MOUSE        0
  70. #define DEV_XCONS        1
  71.  
  72. /*
  73.  * SCSI HBA's attached to the system.
  74.  */
  75. #define DEV_SII_HBA    0
  76. #endif 
  77.  
  78. #define DEV_PLACEHOLDER_3    13      /* for ds3100 unused graphics device */
  79. #define DEV_AUDIO        15
  80. #define DEV_VMELINK        16
  81.  
  82. /*
  83.  * "Standard" frame buffer. The idea is that this device behave the same on
  84.  * machine types, unlike the mouse or graphics device.
  85.  */
  86.  
  87. #define DEV_STDFB 17
  88.  
  89. /*
  90.  * Following device(s) exist only on Sequent Symmetry
  91.  */
  92.  
  93. #define DEV_ZDC_DISK        14
  94.  
  95. /*
  96.  * The following device types are defined for SPUR as of 7/15/89.  They
  97.  * should be changed so that don't overlap the device types above.
  98.  * Also, why do two different devices have the same number?
  99.  */
  100.  
  101. #define DEV_CC            9
  102. #define DEV_PCC            9
  103.  
  104. /*
  105.  * SCSI HBA's attached to the system.
  106.  */
  107.  
  108. #define    DEV_SCSI3_HBA    0
  109. #define    DEV_SCSI0_HBA    1
  110. #define    DEV_JAGUAR_HBA  2
  111.  
  112. /*
  113.  * The following exists only on the sparc station.
  114.  */
  115. #define DEV_SCSIC90_HBA    0
  116.  
  117. #endif /* _DEVTYPES */
  118.  
  119.